Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor API improvements for sending/receiving payments #619

Merged
merged 2 commits into from
Mar 11, 2024
Merged

Conversation

pm47
Copy link
Member

@pm47 pm47 commented Mar 11, 2024

Commits are independent.

Define a NodeEvent.PaymentReceived that aims to replace the eponym class in the Peer (which is marked as deprecated, but otherwise left untouched). The previous impl wasn't emitted for pay-to-open parts.

Also define a "synchronous' sendLightning method similar to other peer methods.

pm47 added 2 commits March 11, 2024 16:53
Make it a `NodeEvent`, and deprecate corresponding `PeerEvent`.
@pm47 pm47 requested a review from t-bast March 11, 2024 16:00
Copy link
Member

@dpad85 dpad85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, won't cause integration issues with Phoenix.

Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, conflicts with #618 should be easy to handle.

@pm47 pm47 merged commit cb0f5c5 into master Mar 11, 2024
2 checks passed
@pm47 pm47 deleted the api-improvements branch March 11, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants